from selenium.webdriver.common.by import By


class LoginPageLocator():
    # 登录页面   静态属性(元素定位)
    username_loc = (By.XPATH, '//*[@id="username"]')
    password_loc = (By.XPATH, '//*[@id="password"]')
    ver_code_loc = (By.XPATH, '//*[@id="verify_code"]')
    loginbtn_loc = (By.XPATH, '//*[@id="loginform"]/div/div[6]/a')
    errmsg_loc = (By.CSS_SELECTOR, '[class="layui-layer-content layui-layer-padding"]')
    logout_loc = (By.CSS_SELECTOR, '[title="退出"]')